<template>
  <div>
    <!--底部-->
    <el-footer style="height: auto; color: #fff; background-color: #74787a">

    </el-footer>
  </div>
</template>

<script>
export default {
  name: "Foot",
  data() {
    return {
      blogCount: "",
      viewCount: "",
      commentCount: "",
      messageCount: "",
    };
  },
  mounted() {
    this.initData();
  },
  methods: {
    initData() {
      const _this = this;
      this.axios.get("/blog/countBlog").then((resp) => {
        // console.log(resp)
        _this.blogCount = resp.data.data.blogCount;
        _this.viewCount = resp.data.data.viewCount;
        _this.commentCount = resp.data.data.commentCount;
        _this.messageCount = resp.data.data.messageCount;
      });
    },
  },
};
</script>

<style scoped>
</style>